/**
 * Created by no1 on 2015/6/25.
 */
'use strict';
var C = require('../config');
//var o2o_F = require('../o2o/common/function');
var o2o_service_API = require('../o2o/routes/o2o_service_API');

function o2oService() {
    if (!(this instanceof o2oService)) {
        return new o2oService();
    }
}


o2oService.prototype.post = function*(actionGroup, action, apiVer, data) {
    let I = data || {};
    I['action'] = action;
    I['actionGroup'] = actionGroup;

    let Env = {
        I: I
    };
    return yield o2o_service_API(Env);
};

module.exports = o2oService;

